----------------------------------------------------------
--	[Weapon skill]: Atonement
--	[Author      ]: Kalibur
--	[Description ]: Delivers a twofold attack. Damage varies with TP.
----------------------------------------------------------
-- From wiki.ffxiclopedia.org
--Atonement
--Sword weapon skill
--Skill Level: N/A
--Description: Delivers a twofold attack. Damage varies with TP. Burtgang: Aftermath effect varies with TP.
--Available only after completing the Unlocking a Myth (Paladin) quest.
--Aligned with the Aqua Gorget, Flame Gorget & Light Gorget.
--Aligned with the Aqua Belt, Flame Belt & Light Belt.
--Properties
--Element: None
--Skillchain Properties: Fusion/Reverberation
--Modifiers: Current Enmity
--Damage Multipliers by TP:
--100%TP 200%TP 300%TP
--? ? ?
--Modifiers
--Atonement's damage is related directly to the amount of total Enmity accumulated against a monster.
--Rough formula: Damage = (Volatile Enmity + Cumulative Enmity) x TP Multiplier
--The damage from Volatile Enmity and Cumulative Enmity are both capped independently at 360. Together, the overall damage for Atonement is capped at 750 at 100% TP (360x2 does not equal 750, there's another factor involved)
--+Enmity gear or merits do not affect Atonement damage directly - only indirectly, due to increased accumulation of Enmity.
--Damage Increased by
--Champion's Galea with Weapon skill damage +2% augment will increase damage cap of 750 to 765.
--Cerberus family
--Correlating Circle Protections
--Counterstance active on mob
--In the Name of Science Gorgets
--Please note, the Gorgets will not increase damage beyond 750 Cap, but will make it easier to reach said cap.

--Damage Reduced by
--Magic Barrier
--Mana Screen
--Polar Bulwark
--Rampart
--Spectral Barrier
--No effect
--Magic Defense Bonus
--Shell
--------------------------------------------------------



require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/globals/weaponskills");


function OnUseWeaponSkill(player, target, wsID)


numHits = 2;

ftp100 = 2.75; ftp200 = 3.5; ftp300 = 4;

str_wsc = 0.0; dex_wsc = 0.0; vit_wsc = 0.0; agi_wsc = 0.0; int_wsc = 0.0; mnd_wsc = 0.0; chr_wsc = 0.0;

canCrit = false;
crit100 = 0.0; crit200 = 0.0; crit300 = 0.0;

acc100 = 0.0; acc200= 0.0; acc300= 0.0;

atkmulti = 1;

--No where near right 

damage = doPhysicalWeaponskill(player,target,numHits,str_wsc,dex_wsc,vit_wsc,agi_wsc,int_wsc,mnd_wsc,chr_wsc,canCrit,crit100,crit200,crit300,acc100,acc200,acc300,atkmulti);
return damage;

end